# Dockerfile for installing Fast-RTPS
FROM 10.0.0.5:30500/rtps/fast-rtps-baseimage:latest

RUN git clone --recursive https://github.com/eProsima/Fast-RTPS.git /home/Fast-RTPS

RUN mkdir /home/Fast-RTPS/build && \
	cd /home/Fast-RTPS/ && \
	git checkout 201a393b500a35d56d3e46b5b6c2c6a96e85928e && \
	cd build && \
	cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON .. && \
	make  && \
	make install
RUN cd /home/Fast-RTPS/examples/C++/HelloWorldExample/ && \
       cmake . && \
       make && \
       make install 
WORKDIR /home/Fast-RTPS/examples/C++/HelloWorldExample/
